.ToyHomeComponentsScanner {
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 9999;
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;

  @keyframes scan {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(100vh);
    }
  }
  &.hidden {
    visibility: hidden;
  }

  #qr-reader {
    width: 100%;

    position: relative;
    overflow: hidden;
  }
  .scanner-close {
    color: white;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
  }
  .scanner-line {
    $border-radius: 90%;
    transform: translateY(0);
    position: absolute;
    top: 0;
    left: 0;
    height: 120px;
    width: 100%;
    filter: blur(2px);
    background: linear-gradient(0deg, rgba(44, 137, 200, 1) 1%, rgba(44, 62, 80, 0.1));
    z-index: 90;
    animation: scan 1.2s infinite;
    &::before {
      content: "";
      position: absolute;
      top: -20px;
      left: 0;
      right: 0;
      bottom: 0;
      background: inherit;
      border-top-right-radius: inherit;
      border-top-left-radius: inherit;
      filter: blur(20px);
      z-index: -1;
    }
  }
}
